/* 在线测试样式 */
.test-content {
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.method-select {
  margin-bottom: 1.5rem;
}

.method-select select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: white;
  color: #374151;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.params-editor {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.param-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr) auto;
  gap: 1rem;
  align-items: center;
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 0.75rem;
  position: relative;
}

.param-name-input,
.param-value-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: white;
  color: #374151;
  transition: all 0.2s;
}

.param-name-input {
  font-weight: 500;
  color: #1a237e;
}

.remove-param {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-param-btn {
  width: 100%;
  padding: 1rem;
  border: 2px dashed #e2e8f0;
  background: white;
  color: #6366f1;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.test-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .param-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .remove-param {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }
} 